import request from '@/utils/request'
//获取卡片列表
export const getCardListAPI = (params) => {
  return request({
    url: '/parking/card/list',
    method: 'GET',
    params
  })
}
//编辑月卡
export const getCardDetailAPI = (id) => {
  return request({
    url: `/parking/card/detail/${id}`,
    method: 'GET'
  })
}
// 删除月卡
export function delCardAPI(id) {
  return request({
    url: `/parking/card/${id}`,
    method: 'DELETE'
  })
}
//批量删除月卡
export function delCardListAPI(idList) {
  return request({
    url: `/parking/card/${idList.join(',')}`,
    method: 'DELETE'
  })
}
